package com.example.annolog.exception;

public class BaseException extends Throwable {
    String errCode;
    String erroInfo;

    public BaseException(String errCode, String erroInfo) {
        this.errCode = errCode;
        this.erroInfo = erroInfo;
    }

    public BaseException(String message, String errCode, String erroInfo) {
        super(message);
        this.errCode = errCode;
        this.erroInfo = erroInfo;
    }

    public BaseException(String message, Throwable cause, String errCode, String erroInfo) {
        super(message, cause);
        this.errCode = errCode;
        this.erroInfo = erroInfo;
    }

    public BaseException(Throwable cause, String errCode, String erroInfo) {
        super(cause);
        this.errCode = errCode;
        this.erroInfo = erroInfo;
    }

    public BaseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String errCode, String erroInfo) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.errCode = errCode;
        this.erroInfo = erroInfo;
    }
}
